package com.evzgaga.evzrecon.plugins;

import com.evzgaga.evzrecon.annotations.ChatCommandHandler;
import com.evzgaga.evzrecon.annotations.Injected;
import com.evzgaga.evzrecon.event.ChatCommandEvent;
import com.evzgaga.evzrecon.xmlrpc.client.GbxRemoteConnection;

/**
 *
 * @author Bastien
 */
public class TrackManagementPlugin {
    @Injected(canBeNull=false)
    private GbxRemoteConnection server;

    @ChatCommandHandler(commands="next")
    public void handleNextMapEvent(ChatCommandEvent event) {
        server.callRemoteMethod("NextChallenge");
    }
}
